/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-11-18 23:23:26
 * @LastEditors: lhl
 * @LastEditTime: 2024-11-18 23:23:34
 */
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
import type { RootState, AppDispatch } from '@/store';

// 为 dispatch 定义类型
export const useAppDispatch: () => AppDispatch = useDispatch;

// 为 selector 定义类型
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
